<?php
/**
 * File containing the SearchForm
 *
 * PHP Version 5
 *
 * @category Processors
 * @package  Processors
 * @author   Martin Schlecht <herrlollinger@gmail.com>
 * @license  MIT License
 * @link     http://code.google.com/p/universal-test-data
 */

/**
 * Processor class "SearchForm"
 *
 * The form is the main input method for the search
 *
 * @category   Forms
 * @package    Forms
 * @subpackage InputForms
 * @author     Martin Schlecht <herrlollinger@gmail.com>
 * @copyright  see @author
 * @license    MIT License
 * @link       http://code.google.com/p/universal-test-data
 *
 * The followings are the available attributes of the processor class
 * @property string $string, the text which should be processed
 */
class SearchForm extends CFormModel
{
	public $string;
		
	/**
	 * Declares the validation rules.
	 */
	public function rules()
	{
		return array(
			array('string', 'required'),
			array('string', 'safe'),
		);
	}

	/**
	 * Declares customized attribute labels.
	 * If not declared here, an attribute would have a label that is
	 * the same as its name with the first letter in upper case.
	 */
	public function attributeLabels()
	{
		return array(
			'string' => Yii::t('model', 'Search for'),
		);
	}
}